package com.nian.images;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.nian.common.config.ObjectMapperConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.context.annotation.Bean;

/**
 * 用途：
 * 开发：zhangmj
 * 日期：2020/3/31 0031 17:26
 */
@EnableHystrix
@EnableCircuitBreaker
@EnableDiscoveryClient
@SpringBootApplication
public class NianImagesApplication {
    public static void main(String[] args) {
        SpringApplication.run(NianImagesApplication.class, args);
    }

    @Bean
    public ObjectMapper objectMapper(){
        return new ObjectMapperConfig().objectMapper();
    }

}
